package demo1;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        TreeNode treeNode = new TreeNode();
        while (input.hasNextLine()) {
            String s = input.nextLine();
            TreeNode.Node root = treeNode.createTree(s);
            treeNode.inOrder(root);
        }
    }
}
